#include <gtest/gtest.h>
 
class Student {
public:
    Student(int id, std::string name): id_(id), name_(name) {};
    ~Student() = default;
    void SetAge(int age) { age_ = age; }
    int GetAge() const { return this->age_; }
    void SetScore(int score) { score_ = score; }
    int GetScore() const { return this->score_; }
private:
    int id_;
    std::string name_;
    int age_;
    int score_;
};
class StudentTest : public testing::Test {
protected:
    void SetUp() override {
        student = new Student(1234, "Tom");
    }
    void TearDown() override {
        delete student;
    }
    Student* student;
};
TEST_F(StudentTest, SET_AGE_TEST) {
    student->SetAge(16);
    int age = student->GetAge();
    EXPECT_EQ(age, 16);
}
TEST_F(StudentTest, SET_SCORE_TEST) {
    student->SetScore(99);
    int score = student->GetScore();
    ASSERT_EQ(score, 99);
}
int main() {
    testing::InitGoogleTest();
    return RUN_ALL_TESTS();
} 
  